<?php

namespace app\admin\model;

use think\Db;
use think\Model;
use think\Session;

class AdminBasicZoom extends Model
{

    // 表名
    protected $table = 'admin_basic_zoom';
    // 开启自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';
    // 定义时间戳字段名
    protected $createTime = 'ctime';
    protected $updateTime = 'utime';



    public static function getAdminInfoById($admin_id){
      $uInfo  =  Db::table('admin_basic_zoom')->where('admin_id',$admin_id)->field('*')->find();
      if($uInfo)
          return $uInfo;
      else
          return '';
    }

}
